﻿<%@ Page Language="C#" AutoEventWireup="true" Culture="th-TH" uiCulture="th" CodeBehind="PS_RoyalItemReceives.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.PS_RoyalItemReceives" %>
<%@ Register TagPrefix="custom" Namespace="KPIS.Customs.UI" %>

<link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Edit dialog</title>
</head>
<body>
    <form id="form1" runat="server" style="font-family: 'ms sans Serif'; font-size: x-small;">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <script type="text/javascript">
        
        function AfterChange(sender) 
                 {
                    var date = sender.getSelectedDateFormatted();
                    var all_date = date.split("/");
                    var day = all_date[0];
                    var month = all_date[1];
                    var year = parseInt(all_date[2]) + 543;
                    if (day.length == 1) {
                        day = '0' + day;
                    }
                    if (month.length == 1) {
                        month = '0' + month;
                    }

                    var maskText = $find("<%= txtReceiveDate.ClientID %>");
                    maskText.SetValue(day + month + year);
                }
                function AfterChange2(sender) 
                 {
                    var date = sender.getSelectedDateFormatted();
                    var all_date = date.split("/");
                    var day = all_date[0];
                    var month = all_date[1];
                    var year = parseInt(all_date[2]) + 543;
                    if (day.length == 1) {
                        day = '0' + day;
                    }
                    if (month.length == 1) {
                        month = '0' + month;
                    }

                    var maskText = $find("<%= txtRoyalDate.ClientID %>");
                    maskText.SetValue(day + month + year);
                }
                function AfterChange3(sender) 
                 {
                    var date = sender.getSelectedDateFormatted();
                    var all_date = date.split("/");
                    var day = all_date[0];
                    var month = all_date[1];
                    var year = parseInt(all_date[2]) + 543;
                    if (day.length == 1) {
                        day = '0' + day;
                    }
                    if (month.length == 1) {
                        month = '0' + month;
                    }

                    var maskText = $find("<%= txtGazetteDate.ClientID %>");
                    maskText.SetValue(day + month + year);
                }
                
                function CloseWindow() 
                {
                    window.close();
                }
        </script>
        <telerik:RadAjaxManager runat="Server" ID="RadAjaxManager1">
<%--           <AjaxSettings>
             <telerik:AjaxSetting AjaxControlID="btnAddnew">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="btnAddnew" />
                        </UpdatedControls>
                </telerik:AjaxSetting>-
                <telerik:AjaxSetting AjaxControlID="btnCancel">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="btnCancel" />
                        </UpdatedControls>
                </telerik:AjaxSetting>
          </AjaxSettings>--%>
        </telerik:RadAjaxManager>
        <div class="moduleDivSlim650">
        <div class="moduleDivBottom650">

    <table align="center" width = "650px">
    <tr>
        <td align="right" >
            ได้รับใบประกาศเมื่อวันที่ :</td>
        <td align="left" >
            <telerik:RadMaskedTextBox
                ID="txtReceiveDate" 
                Runat="server" 
                CausesValidation="false" 
                Mask=" ##/##/####" 
                Width="100px">
            </telerik:RadMaskedTextBox>
        </td>
        <td align="right" >               
            ได้รับจริงเมื่อวันที่ :</td>
        <td align="left" >
        <telerik:RadMaskedTextBox
                ID="txtRoyalDate" 
                Runat="server" 
                CausesValidation="false" 
                Mask=" ##/##/####" 
                Width="100px">
        </telerik:RadMaskedTextBox>
        </td>
        
    </tr>
    <tr>
        <td align="right" >ราชกิจจานุเบกษาเล่ม :</td>
        <td align="left" >
        <telerik:RadTextBox 
                ID="txtGazetteNo1" 
                Runat="server" 
                Skin="Outlook" TabIndex="1"                 
                ValidationGroup="1" 
                Width="100px">
            </telerik:RadTextBox>
            </td>
        <td align="right" > ตอนที่ :  </td>       
           
        <td align="left" >
        <telerik:RadTextBox 
                ID="txtGazetteNo2" 
                Runat="server" 
                Skin="Outlook" TabIndex="1"                 
                ValidationGroup="1" 
                Width="100px">
            </telerik:RadTextBox>
            </td>
        
    </tr>
    <tr>
        <td align="right" >เล่มที่ :
            </td>
        <td align="left" >
            <telerik:RadTextBox 
                ID="txtGazetteNo3" 
                Runat="server" 
                Skin="Outlook" TabIndex="1"                 
                ValidationGroup="1" 
                Width="100px">
            </telerik:RadTextBox>
        </td>
        <td align="right" > วันที่ : </td>     
       
        <td align="left">
            <telerik:RadMaskedTextBox
                ID="txtGazetteDate" 
                Runat="server" 
                CausesValidation="false" 
                Mask=" ##/##/####" 
                Width="100px">
        </telerik:RadMaskedTextBox>
            </td>
        
    </tr>
    <tr>
        <td align="right" >หน้า :
            </td>
        <td align="left" >
        <telerik:RadTextBox 
                ID="txtGazetteNo4" 
                Runat="server" 
                Skin="Outlook" TabIndex="1"                 
                ValidationGroup="1" 
                Width="100px">
            </telerik:RadTextBox>
            </td>
        <td align="right" >  ลำดับที่ :             
            </td>
        <td align="left" >
        <telerik:RadTextBox 
                ID="txtGazetteNo5" 
                Runat="server" 
                Skin="Outlook" TabIndex="1"                 
                ValidationGroup="1" 
                Width="100px">
            </telerik:RadTextBox>
            </td>
        
    </tr>
    <tr>
        <td align="right" >
            <asp:Label ID="lblSeq" runat="server" Visible="False"></asp:Label>
        </td>
        <td align="left" valign="bottom">               
            <asp:Button ID="btnAddnew" runat="server" CommandName="Update" 
                text="บันทึก" onclick="btnAddnew_Click" />
            <asp:Button ID="btnUpdate" runat="server" CommandName="Update" Visible ="false"
                onclick="btnUpdate_Click" text="แก้ไข" />
            <asp:Button ID="btnCancel" runat="server" causesvalidation="False" 
                OnClientClick="CloseWindow()" text="ยกเลิก" />
        </td>
        <td align="right" >
            &nbsp;</td>
        <td align="left" ></td>
    </tr>
    <tr>
        <td >
            &nbsp;</td>
             </tr>
</table>

</div>
</div>

    </form>
</body>
</html>

